#!/bin/bash
# CRM by The Forge - macOS Launcher
DIR="$(cd "$(dirname "$0")" && pwd)"
cd "$DIR"

if [ ! -d "venv" ]; then
    python3 -m venv venv
    source venv/bin/activate
    pip install -q -r requirements.txt
fi

source venv/bin/activate

uvicorn main:app --host 0.0.0.0 --port 3001 --log-level warning &
sleep 2
open http://localhost:3001
wait
